package br.com.livraria.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {

	Connection con;
	
	public Connection getConnection() throws SQLException{
		
		con = DriverManager.getConnection(
				"jdbc:mysql://db4free.net:3306/falclivraria",
				"milamc", "milamc");
		System.out.println("Conectado");
		
		return con;
	}
}
